import request from '@/utils/request.js'

export const getArticleDetailAPI = articleId => {
  return request.get(`v1_0/articles/${articleId}`)
}

// 关注用户
export const followUserAPI = userId => {
  return request.post('/v1_0/user/followings', {
    target: userId
  })
}

// 取消关注
export const unfollowUserAPI = userId => {
  return request.delete(`/v1_0/user/followings/${userId}`)
}
